import { ref } from 'vue'

export default function addMenuService() {
  // 控制菜单添加
  const addMenuState = ref<boolean>(false)
  const openAddMenuModal = () => {
    addMenuState.value = true
  }
  const closeAddMenuModal = () => {
    addMenuState.value = false
  }

  return { addMenuState, openAddMenuModal, closeAddMenuModal }
}
